use axum::{routing::{MethodRouter, post}, Router,};

pub mod user;
pub mod good;
pub mod  ws;
use  user::{login,get_all_users};


// delete(delete_user).put(update_password))
pub  fn get_router()->Router{
    //user
   route("/user/login",post(login)).
   route("/user/alluser",post(get_all_users))

}

fn route(path: &str, method_router: MethodRouter) -> Router {
    Router::new().route(path, method_router)
}